Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Luyolo Mgodi 71 posts 120 karma points
    Jul 19, 2011 @ 15:47
    Luyolo Mgodi
    0

    Error in UpdateAddressInformation[XSLT].xslt file

    Good day 

    I am setting up a demo for a client using version 2.0.1.0 of uCommerce. I am having a problem with the UpdateAddressInformation[XSLT].xslt file. There is a method called  CommerceLibrary:EditShipmentInformation that is being called by the XSLT to update the shipping information. I keep on getting this error " Error parsing XSLT file: \xslt\UpdateAddressInformation[XSLT].xslt". When I debug the XSLT file, every time it gets on that method, it bombs out. I tried to go through uCommerce.dll file using .Net Reflector trying to understand what is going on and have more view of the methods compiled in it, I have noticed that I cannot access that particular Method, although I can see all the other Methods and see the code inside, on that method I cannot access it. 
    Can you please help me and and give me some light if there is anything I'm doing wrong ?
    Thanks,
    Luyolo

     

  • Luyolo Mgodi 71 posts 120 karma points
    Jul 20, 2011 @ 15:10
    Luyolo Mgodi
    0

    Have any of you guys came across this error ? 

  • Lasse Eskildsen 34 posts 57 karma points
    Jul 21, 2011 @ 11:34
    Lasse Eskildsen
    0

    Hi,

    Can you post the error message?

    You can access the page with the querystring parameter ?umbdebugshowtrace=true, and scroll down to see the error message (in red)? 

  • Luyolo Mgodi 71 posts 120 karma points
    Jul 21, 2011 @ 12:47
    Luyolo Mgodi
    0

    Hi,

    Every time I try to put that querystring on the browser and immediately after I hit enter, the ERROR disappears. So nothing on the stack trace is shown.I see all the other stuff of the page but I cannot see the error details. I tried debugging that method and found out that it throws a NHibernate exception  "Sequence contains no elements". What is more scary is that even if I try to use .Net Reflector to actually go and see what is happening inside that Method, it crashes Reflector.

  • Luyolo Mgodi 71 posts 120 karma points
    Jul 21, 2011 @ 13:43
    Luyolo Mgodi
    0

    Hi Lesse,

    Please check below is the error it is throwing. This is what it is registering in the umbracoLog table:

    not-null property references a null or transient value UCommerce.EntitiesV2.Shipment.ShipmentName

    Void CheckNullability(System.Object[], NHibernate.Persister.Entity.IEntityPersister, Boolean)

       at NHibernate.Engine.Nullability.CheckNullability(Object[] values, IEntityPersister persister, Boolean isUpdate)

       at NHibernate.Event.Default.AbstractSaveEventListener.PerformSaveOrReplicate(Object entity, EntityKey key, IEntityPersister persister, Boolean useIdentityColumn, Object anything, IEventSource source, Boolean requiresImmediateIdAccess)

       at NHibernate.Event.Default.AbstractSaveEventListener.PerformSave(Object entity, Object id, IEntityPersister persister, Boolean useIdentityColumn, Object anything, IEventSource source, Boolean requiresImmediateIdAccess)

       at NHibernate.Event.Default.AbstractSaveEventListener.SaveWithGeneratedId(Object entity, String entityName, Object anything, IEventSource source, Boolean requiresImmediateIdAccess)

       at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.SaveWithGeneratedOrRequestedId(SaveOrUpdateEvent event)

       at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.EntityIsTransient(SaveOrUpdateEvent event)

       at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.PerformSaveOrUpdate(SaveOrUpdateEvent event)

       at NHibernate.Event.Default.DefaultSaveOrUpdateEventListener.OnSaveOrUpdate(SaveOrUpdateEvent event)

       at NHibernate.Impl.SessionImpl.FireSaveOrUpdate(SaveOrUpdateEvent event)

       at NHibernate.Impl.SessionImpl.SaveOrUpdate(Object obj)

       at UCommerce.EntitiesV2.Repository`1.Save(T entity)

       at UCommerce.EntitiesV2.Shipment.Save()

       at UCommerce.Xslt.TransactionLibrary.EditShipmentInformation(String addressName, String firstName, String lastName, String emailAddress, String phoneNumber, String mobilePhoneNumber, String company, String line1, String line2, String postalCode, String city, String state, String attention, Int32 countryId)

       at UCommerce.Xslt.Library.<>c__DisplayClassc4.<EditShipmentInformation>b__c3()

       at UCommerce.Xslt.Library.HandledCall[T](Func`1 method)

  • Jonny Holt 2 posts 22 karma points
    Jul 21, 2011 @ 14:35
    Jonny Holt
    0

    Hi Luyolo

    I had the same issue. Looked into it and seem to have fixed it.

    You'll likely of created a new Product Catalogue Group, if I'm correct? And the problem is that you have not selected the Shipping method to have access to the product catalogue group.

    You can do this under: Commerce/Settings/Orders/Shipping Methods/<Shipping Method>
    Select your shipping method, click the "Access" Tab, and check your product catalogue group.

    However, you will likely hit another issue as well when you do this! When you select your node:
    Commerce/Settings/Orders/Shipping Methods/<Shipping Method>
    You may get an error screen. If you do it is because there seems to be some rogue value in the web.config under the <commerce> section:
     <add name="PayPal" type="UCommerce.Transactions.Payments.PayPal.PayPalPaymentMethodService, UCommerce.Transactions.Payments" />z½

    Notice the "z½" value, remove this and you should then get access to your shipping method so that you can add access for your product catalogue group.

    Hope that helps!!

  • Luyolo Mgodi 71 posts 120 karma points
    Jul 21, 2011 @ 16:07
    Luyolo Mgodi
    0

    Hi Jonny,

    I tried that. I even deleted all my Shipping Methods and my Product Catalog groups and re-created them but still no luck. I am still getting the same error. 

  • Jonny Holt 2 posts 22 karma points
    Jul 21, 2011 @ 18:16
    Jonny Holt
    0

    Hi

    Sorry all out of answers then, as that solved it for me so unable to replicate.

    Just out of curiousity, did you have the same issue in the web.config file by any chance?

    I installed the latest packages, so guessing that there must be a slight bug in it??

     

  • Luyolo Mgodi 71 posts 120 karma points
    Jul 22, 2011 @ 09:14
    Luyolo Mgodi
    0

    Hi,

    No I did not have the issue with the web.config. Everything was fine in te web.config file..

    Wonder what else could be causing that error? Hoping to find a solution soon as this is urgent.

  • Luyolo Mgodi 71 posts 120 karma points
    Jul 22, 2011 @ 13:01
    Luyolo Mgodi
    0

    Hi Jonny,

    I just re-installed uCommerce(the whole package) and I am still getting the very same error. After I have re-installed I have the funny characters you told me about () also.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Jul 28, 2011 @ 17:36
    Søren Spelling Lund
    0

    Luyolo and I figured this out in a separate e-mail thread. For completeness sake I'm posting the solution here as well.

    The issue was caused by ASP.NET determining the language based on the language setting in the browser. The language set on the current thread did not exist in Umbraco or uCommerce thus no name could be found for the shipment uCommerce was trying to create.

    The solution is to set up a hostname for the site and assign a language already preconfigured in Umbraco. In this case en-us will do the job as both Umbraco and uCommerce ship with that already configured.

    A fix has gone into uCommerce to prevent this error from happening (will be included in uCommerce 2.0.2.0 and up).

Please Sign in or register to post replies

Write your reply to:

Draft